package com.springcloud.zuul.common.constant;

/**
 * Description:异常错误码
 * @author zhlu
 * @date 2019/12/25 7:23 下午
 */
public enum ServiceErrCode {


    INVALID_PARAMS("500","无效的参数!"),
    /** 参数不能为空 */
    REQ_PARAM_ERR("52001","参数不能为空!"),
    /** 参数转换错误 */
    PARAM_CONVERT_ERROR("52002","参数转换错误!"),
    /** 数据异常 */
    DATA_SERVER_ERROR("52003","数据异常!");

    private String code;

    private String msg;

    ServiceErrCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
